include('shared.lua')

function ENT:Initialize()
    self.cl_repair = 1
    self.cl_driver = NULL
end

function ENT:Think()
    self.cl_driver = self.Entity:GetNetworkedEntity("driver")
    self.cl_repair = self.Entity:GetNetworkedFloat("repair")
    
    if(self.cl_repair<1 and self.cl_driver==LocalPlayer()) then
        local pos = self.Entity:LocalToWorld(Vector(0,0,self.Entity:OBBCenter().z))
        repairhud_info[self.Entity:EntIndex()] = {vec = pos,val=self.cl_repair}
    end
end

function ENT:Draw()
	self:DrawModel()
end